/**
 * Replacing the Constants Interface as it is bad practice:
 * "Constant Interface Antipattern's problem is that a class's use of
 * the static members of another class is a mere implementation detail.
 * When a class implements an interface, it becomes part of the class's public API.
 * Implementation details should not leak into public APIs."
 *
 * -http://java.sun.com/j2se/1.5.0/docs/guide/language/static-import.html
 * 
 * @author Simon Zimmermann
 */

package uia.alumni.web;

public final class Constants {
    public static final String PERSISTENCE_UNIT = "Alumni";

    // request attributes
    public static final String MESSAGES = "messages";
    public static final String FORMERRORS = "formerrors";

    // session attributess
    public static final String USER = "user";

    // form fields
    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";

    // special command names
    public static final String HOME = "home";
    public static final String SEARCH = "search";
    public static final String START = "index.html";

    // Used as a debugging flag.
    public static final boolean DEBUG = true;
}
